﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Demo.OrderManager.Orders.Dto;
/// <summary>
/// 产品数量DTO
/// </summary>
public class ProductCountDto
{
    /// <summary>
    /// 产品编号
    /// </summary>
    public Guid ProductId { get; set; }

    /// <summary>
    /// 数量
    /// </summary>
    [Range(1, 100000)]
    public int Count { get; set; }

    public ProductCountDto(Guid productId, int count)
    {
        ProductId = productId;
        Count = count;
    }
}